package com.zhengxyou.jetpackdemo.dataBinding;

import androidx.databinding.ObservableField;
import androidx.databinding.ObservableInt;

public class UserObserable {
    public ObservableField<String> firstName = new ObservableField<>();
    public ObservableField<String> lastName = new ObservableField<>();
    public ObservableInt age = new ObservableInt();

    public UserObserable() {
    }

    public UserObserable(ObservableField<String> firstName, ObservableField<String> lastName, ObservableInt age) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
    }

    public ObservableField<String> getFirstName() {
        return firstName;
    }

    public void setFirstName(ObservableField<String> firstName) {
        this.firstName = firstName;
    }

    public ObservableField<String> getLastName() {
        return lastName;
    }

    public void setLastName(ObservableField<String> lastName) {
        this.lastName = lastName;
    }

    public ObservableInt getAge() {
        return age;
    }

    public void setAge(ObservableInt age) {
        this.age = age;
    }
}
